﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Game.Character.Skills
{
    public abstract class Skill : TypeClass
    {
        private float mValue;

        public float Value
        {
            get
            {
                return mValue;
            }
            set
            {
                mValue = Math.Max(Min, Math.Min(value, Max));
            }
        }

        public float Max
        {
            get;
            set;
        }

        public float Min
        {
            get;
            set;
        }

        public Skill(float min, float max, float value)
        {
            Min = min;
            Max = max;
            Value = value;
        }
    }
}
